//
//  PYFileManager.h
//  IHome
//
//  Created by Jim on 2019/10/3.
//  Copyright © 2019 com.zhujizheng. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface PYFileManager : NSObject
#pragma mark - 数据库
/// 获取Document目录下的路径
+ (nullable NSString *)getPathInDocumentWithSubPath:(NSString *)subPath;
/// 生成Document目录下的文件夹路径
+ (nullable NSString *)getOrCreateDirectoryInDocumentWithSubPath:(NSString *)subPath;
/// 删除指定路径的文件
+ (void)deleteByName:(NSString *)name fromDocumentDirectory:(NSString *)directory;
+ (void)deleteFileWithPath:(NSString *)path;
+ (void)deleteAllFilesInDocumentDirectory:(NSString *)directory;
/// 获取指定路径的所有文件名
+ (nullable NSArray<NSString *> *)getAllFileNamesFromDocumentDirectory:(NSString *)directory;
/// 复制文件到目标文件
+ (BOOL)copyFromPath:(NSString *)fromPath toPath:(NSString *)toPath;
+ (BOOL)isExistForPath:(NSString *)path;
/// 获取路径文件大小
+ (unsigned long long)getFileSizeForPath:(NSString *)path;
@end

NS_ASSUME_NONNULL_END
